package com.xiaobai.seckill.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaobai
 * @since 2021-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user")
@ToString
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID，手机号码
     */
    private Long id;

    /**
     * 用户名
     */
    private String nickname;

    /**
     * MD5(MD5(明文+固定salt)+salt)
     */
    private String password;

    private String slat;
    /**
     * 头像
     */
    private String head;

    /**
     * 注册时间
     */
    private Date registerDate;

    /**
     * 注册时间
     */
    private Date lastLoginDate;

    /**
     * 登入次数
     */
    private Integer loginCount;

    public User(Long id) {
        this.id = id;
    }
}
